//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    items: [
      {value: '蓝山咖啡', name: '蓝山咖啡'},
      {value: '古巴咖啡', name: '古巴咖啡', checked: 'true'},
      {value: '美式咖啡', name: '美式咖啡'},
      {value: '卡布奇诺', name: '卡布奇诺'},
      {value: '摩卡咖啡', name: '摩卡咖啡'}
    ],
    target:'古巴咖啡'
  },
  onLoad: function () {
  },
  radioChange: function (e) {
    this.setData({
      target: e.detail.value
    })
    // console.log('radio发生change事件，携带value值为：', e.detail.value)
  },
  gotoHb(){
    let t=this.data.target;
    wx.navigateTo({
      url:`/pages/haibao/haibao?t=${t}`
    })
  }
})
